Skip to content

fix(ovpn-rw): correct command for client certificate name extraction#1730

Merged
Tbaile merged 1 commit into
mainfrom
fix_openvpn_ca_renew
Jun 17, 2026
Merged

fix(ovpn-rw): correct command for client certificate name extraction#1730
Tbaile merged 1 commit into
mainfrom
fix_openvpn_ca_renew

Conversation

@m-dilorenzi

Copy link
Copy Markdown
Collaborator

This PR fixes the issue that occurs when a user tries to regenerate the entire PKI of a RoadWarrior server with one or more users whose names contain a . character (e.g. mario.rossi, franco.verdi).

Before the fix, during regeneration a new certificate was created using the part of the name before the first .. Meanwhile, the certificate to be renewed kept its original name and remained revoked (e.g. for mario.rossi.crt, a new valid and renewed certificate was created with the name mario.crt).

This fix resolves the issue by using the UNIX basename command and removing the .crt suffix.

@m-dilorenzi m-dilorenzi requested review from Tbaile and Copilot June 16, 2026 14:12
@m-dilorenzi m-dilorenzi self-assigned this Jun 16, 2026
@m-dilorenzi m-dilorenzi removed the request for review from Copilot June 16, 2026 14:12
@Tbaile Tbaile merged commit 7df40a2 into main Jun 17, 2026
4 checks passed
@Tbaile Tbaile deleted the fix_openvpn_ca_renew branch June 17, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants